/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javamail.web.util;

/**
 *
 * @author sriram
 */
public enum eGenMessage {
    OK(1, "200 OK"),
    NM(2, "304 Not Modified"),
    NF(3, "404 Not Found");

    private final int index;
    private final String str;
    
    eGenMessage(int id, String string) {
        this.index = id;
        this.str = string;
    }
    
    public int toInt() {
        return index;
    }
 
    @Override
    public String toString() {
        return str;
    }
}
